package cn.cjxy.demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

//控制视图跳转
@Controller
public class ViewController {
    /**
     *  将http://localhost:8080/login.html 发到login路径下
     * @return
     */
    @GetMapping({"/login.html","/","/index.html"})
    public String login() {
        return "login";
    }

}
